/*
** hputs.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include "pictor.h"

/*
** Prints a string with one or more highlighted characters. Highlighted
** character are those that follow a tilde (~) characters.
*/
void hputs(char *str,int hilite)
{
	int norm = _PL_color;;

	while(*str) {
		if(*str == '~' && *(str + 1) != '~') {
			str++;
			vcolor(hilite);
		}
		vputc(*str++);
		vcolor(norm);
	}

} /* hputs */
